package com.hzl.lease.common.utils;

import java.util.Random;

public class VerifyCodeUtil {
    public static String generateVerifyCode(int len) {
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < len; i++) {
            sb.append(new Random().nextInt(10)); //bound 界限是10
        }
        return sb.toString();
    }
}
